home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
music
/
7
/
pascal
/
pasnotes.doc
< prev
next >
Wrap
Text File
|
1985-11-19
|
3KB
|
94 lines
#24 - 437 chars 02/23/86 17:23:49
Re: Personal Pascal Bugs
Several bugs have been reported in the Personal Pascal
system, most of which can be easily fixed. A patch
program will be available soon on this system which fixes
the following problems:
- the routine "Bring_To_Front" not found
- mysterious numbers in the ITEM SELECTOR dialog
- "Delete_Dialog" sometimes crashing
- a few more fairly obscure bugs
In addition, read the following few messages for a few
fixes you can apply now.
#28 - 168 chars 02/24/86 10:19:06
Re: Pascal FOR loop variable
To- David Duberman
Yes, we do intend to allow Long_Integer FOR loop counters.
We also intend to allow variables to occupy more than 32K of
space in a future release.
#30 - 398 chars 02/24/86 10:27:44
Re: Pascal output to printer
If you want to open a file to the printer using Personal
Pascal, the following procedure call should work:
rewrite( f, 'prn:' ) ;
if f is of type "text". ('lst:' works too, as do the upper-
case versions) You can also make the standard output go to
the printer with:
rewrite( output, 'prn:' ) ;
DON'T use the "reset" call with the printer, since that call
opens a file for INPUT, not OUTPUT.
#33 - 617 chars 02/24/86 10:40:31
Re: Pascal with two drives
Some people have had difficulty telling Pascal to put their
source and object on drive B:, if they have a two-driver
system. In order to edit, compiler, or link a file on
drive B:, select the option so you get the ITEM SELECTOR
dialog, then do the following:
1. Click the mouse on the upper text field (where the
directory is shown)
2. Use the keyboard to change the leading "A:" to "B:"
3. Move the mouse down into the area where the file names
are shown, and click the mouse once (this tells
GEM that you have changed the directory).
You should now see the list of files on the B drive.
#35 - 795 chars 02/24/86 11:30:12
Re: STRING type w/ Pascal
There are a couple of things to keep in mind when using the STRING
type in Personal Pascal. Whenever you use the STRING type, with or
without a length specified, you are declaring a "new-type" (see page
6-20 of your manual). A "new-type" is incompatible with all other
new-types. So, if you declare a procedure like this:
PROCEDURE p( VAR s : STRING[10] ) ;
there is no way to pass another variable declared as STRING[10] to the
procedure, since the two "STRING[10]" variables are different types!
In order to pass a variable to the procedure, declare a type in the
TYPE section like this:
TYPE Str10 = STRING [ 10 ] ;
and declare the procedure like this:
PROCEDURE p( VAR s : Str10 ) ;
Then, if you declare the string you want to pass as type Str10 as
well, everything will work fine.
#37 - 568 chars 02/24/86 11:37:10
Re: Libraries w/ Pascal
Several people have asked how to put Personal Pascal routines into a
library (like PASGEM and PASLIB). If you want to do this, you must
have the library manager AR68, available from Atari, not us. Make
sure you get the patched version, or instructions on patching it, since
it won't work unchanged. Also, you need the program FIXO to make your
object files an even number of long-words in length. Your Pascal modules
should be compiled with the M+ and E+ options, and shouldn't reference
any global variables, if you want any Pascal program to be able to use
them
ə